.card-hover {
  --#{$prefix}card-icon-hover-color: #{$primary};

  .card-img-overlay {
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  .card-icon {
    transition: color 0.3s ease-in-out;
  }
  &:hover {
    .card-icon {
      color: var(
        --#{$prefix}card-icon-hover-color
      ) !important; // stylelint-disable-line declaration-no-important
    }
    .card-img-overlay {
      opacity: 1;
    }
  }
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #262254;
  color: $white;
  cursor: default;
  pointer-events: none;

  border-radius: 0.75rem;
  h4 {
    color: #c2a78c;
    font-weight: 800;
  }
  .smaller {
    font-size: 0.75rem;
  }

  &-top {
    width: 100%;
    img {
      max-width: 6rem;
      margin-bottom: 0.75rem;
    }
  }
  &-container {
    // transform: scale(0.48);
    // transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);

    &-inner {
      position: relative;
      overflow: hidden;
      &::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background: url("/assets/images/page/student/person.png") no-repeat;
        background-size: cover;
        z-index: 3;
      }
    }
  }
  &-circle {
    // border-radius: 50%;
    // cursor: pointer;
    // height: 380px;
    // left: 10px;
    // pointer-events: none;
    // position: absolute;
    // top: 210px;
    // width: 380px;
    display: none;
  }
  &-img {
    pointer-events: none;
    position: relative;
    // transform: translateY(20px) scale(1.16);
    // transform-origin: 50% bottom;
    // transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
    // width: 380px;
    // left: 22px;
    // top: 164px;
    z-index: 2;
  }
  &-divider {
    height: 1px;
    width: 160px;
  }
  .person-img {
    transition: all 0.2s ease-in-out;
    width: 100%;
    height: 100%;
    background-color: $white;
  }

  &:hover {
    box-shadow: var(--nvm-box-shadow);
    h4 {
      color: $warning;
    }
    .person-container {
      &-inner {
        &::before {
          background: url("/assets/images/page/student/person-hover.png")
            no-repeat;
          background-size: cover;
        }
      }
    }
    // transform: scale(0.54);
    .person-img {
      transform: translateY(0) scale(1.08);
      transition: all 0.3s ease-in-out;
    }
  }
  .bg-overlay {
    visibility: hidden;
  }
  &.have-link {
    cursor: pointer;
    pointer-events: all;
    .bg-overlay {
      visibility: visible;
      z-index: -1;
      transition: all 0.3s ease-in-out;
    }
    &:hover {
      .bg-overlay {
        // visibility: visible;
        z-index: 2;
        transition: all 0.3s ease-in-out;
        &-content {
          z-index: 3;
          transform: translate(-50%, -50%);
        }
        &-bg {
          z-index: 2;
          opacity: 0.92;
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
        }
      }
    }
  }
}

.text-hollow {
  color: #262254 !important;
  letter-spacing: 0.125rem;
  text-shadow: 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
  opacity: 0.35 !important;
}

.bg-person {
  background-color: #262254;
}
